<template>
  <div class="box">
    <div class="leftBox">
      <span>共{{ total }}条数据</span>
      <span>第1/3页</span>
    </div>
    <div class="rightBox">
      <button>上一页</button>
      <button @click="nextPage">下一页</button>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    total: {
      type: String,
      default: null
    }
  },
  data() {
    return {
    }
  },
  methods: {
    nextPage() {
      this.$emit('nextPage')
    }
  }
}
</script>

<style scoped lang="scss">

.box {
  display: flex;
  justify-content: space-between;
  .leftBox {
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    color: #dbdfe5;
    span{
      margin-left: 10px;
    }
  }
  .rightBox {
     height: 50px;
    line-height: 50px;
    button {
      width: 70px;
      height: 32px;
      margin: 0 16px;
      border-radius: 2px;
      background-color: #d5ddf8;
      border: 0;
      font-size: 13px;
    }
  }
}
</style>
